package com.gitee.cashzhang27.test.sdk.bestsign.domain.request;

import cn.hutool.http.Method;
import com.gitee.cashzhang27.test.sdk.bestsign.domain.AbstractBestSignRequest;
import com.gitee.cashzhang27.test.sdk.bestsign.domain.BestSignRequest;
import com.gitee.cashzhang27.test.sdk.bestsign.domain.response.ContractCancelResponse;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/08/14 14:34
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class ContractCancelRequest extends AbstractBestSignRequest implements
    BestSignRequest<ContractCancelResponse> {

  private String contractId;

  @Override
  public String getMethodName() {
    return "/contract/cancel/";
  }

  @Override
  public Method getMethodType() {
    return Method.POST;
  }

  @Override
  public Class<ContractCancelResponse> getResponseClass() {
    return ContractCancelResponse.class;
  }

}
